package com.dataextend.mapper.cluster;


import com.alibaba.fastjson.JSONObject;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ReportChannelMapper {

    // 渠道报表
    List<JSONObject> mainReport(@Param("data_date") String data_date);


    // 渠道表格
    List<JSONObject> searchTable(@Param("start_date") String start_date,
                                 @Param("end_date") String end_date, @Param("channel") String channel);

    Integer searchTableCount(@Param("start_date") String start_date,
                             @Param("end_date") String end_date, @Param("channel") String channel);


    // 渠道下拉菜单
    List<String> channelList();


    // 渠道价值分析
    List<JSONObject> searchTableValue(@Param("data_date") String data_date);


}